import com.alibaba.fastjson.JSON;

/**
 * @Author: fei.wu
 * @Email: fei.wu@rograndec.com
 * @CreateDate: 2018/9/30
 * @Version: 1.0
 */
public class JsonObj {


    private String a;

    private String b;

    public String getA() {
        return a+1;
    }

    public void setA(String a) {
        this.a = a;
    }

    public String getB() {
        System.out.println(b+a);
        return b+1;
    }

    public void setB(String b) {
        this.b = b;
    }

    public static void main(String[] args) {
        JsonObj jsonObj = new JsonObj();
        jsonObj.setA("1");
        jsonObj.setB("1");
        System.out.println(JSON.toJSONString(jsonObj));


    }
}
